package com.taiji.dianthus.dao.sms;

import com.taiji.dianthus.domain.sms.SmsBackInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SmsBackInfoRepository extends JpaRepository<SmsBackInfo, String>,
        JpaSpecificationExecutor<SmsBackInfo> {


    @Query("select t from SmsBackInfo  t where t.msgGroup=:smsGroup")
    List<SmsBackInfo> getBySmsGroup(@Param("smsGroup") String smsGroup);
}
